package com.iplant.ams.service.basicenum.dms;


import com.iplant.base.po.enums.BaseEnum;

/**
 * @author YouWang·Peng
 * 2023-7-14 09:23:25
 */
public enum DMSItemTaskStatus implements BaseEnum {
    /**
     * 默认
     */
    Default(0, "默认"),

    /**
     * 待派工（和荣为待检验）
     */
    ToDispatch(1, "待派工"),
    /**
     * 待维保（和荣为已检验）
     */
    ToRepair(2, "待维保"),
    /**
     * 待检验
     */
    ToCheck(3, "待检验"),
    /**
     * 已检验
     */
    Checked(4, "已检验"),
    /**
     * 无任务
     */
    NoTask(5, "无任务");

    private int value;
    private String label;
    private String remark = "";

    DMSItemTaskStatus(int value, String label) {
        this.value = value;
        this.label = label;
    }

    public static DMSItemTaskStatus getEnumType(int val) {
        for (DMSItemTaskStatus type : DMSItemTaskStatus.values()) {
            if (type.getValue() == val) {
                return type;
            }
        }
        return Default;
    }

    @Override
    public int getValue() {
        return value;
    }

    @Override
    public void setValue(int value) {
        this.value = value;
    }

    @Override
    public String getLabel() {
        return label;
    }

    @Override
    public void setLabel(String label) {
        this.label = label;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }
}
